﻿using System;
using System.Xml.Serialization;

namespace Weather.UA.Model
{
    public class City
    {
        [XmlAttribute("id")]
        public int Id { get; set; }
        [XmlElement("name")]
        public string Name { get; set; }
        [XmlElement("region")]
        public string Region { get; set; }
        public Country Country { get; set; }
    }

    [XmlRoot("city")]
    public class Cities
    {
        [XmlArray("city")]
        [XmlArrayItem("city", typeof(City))]
        public City[] CitiesArray { get; set; }

    }
}
